home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2001 / MacHack 2001.toast / pc / The Hacks / Palm Finder 2 / Src / Panes / superclock.h < prev    next >
Encoding:
Text File  |  2001-06-23  |  686 b   |  26 lines

  1. // superclock.h
  2.  
  3. #define PILOT_PRECOMPILED_HEADERS_OFF
  4. #include <Pilot.h>
  5. #include "pane.h"
  6.  
  7. class view;
  8.  
  9. class superclock: public pane {
  10. public:
  11.                 superclock(FormGadgetType* gadgetP, view* in_superview); // pass pointer to gadget where clock should be
  12.     virtual    ~superclock();                 // does nothing
  13.         
  14.     // superclock-specific
  15.     void        reset_idle_timer();
  16.     void        set_idle_timer(UInt32 interval);
  17.     void        set_date_timer(UInt32 interval);
  18. protected:
  19.     UInt32                m_idle_timer;     // when next update should take place
  20.     UInt32                m_date_timer;    // time left for displaying date instead of time
  21.     
  22.     virtual void        draw_self();
  23.     virtual Boolean    click_self(int x, int y);
  24.     virtual void        idle_self();
  25. };
  26.